package com.wangp.safeCommit.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangp.safeCommit.dto.HazardDateQueryRequestDTO;
import com.wangp.safeCommit.entity.HazardDataEntity;
import com.wangp.safeCommit.entity.HazardEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 危险源数据 Mapper 接口
 * </p>
 *
 * @author zhangliang
 * @since 2024-12-17
 */
@Mapper
public interface HazardDataMapper extends BaseMapper<HazardDataEntity> {

    List<HazardEntity> findHazardPageData(@Param("hazardDTO") HazardDateQueryRequestDTO hazardDTO,
                                          @Param("startTime") Date startTime,
                                          @Param("endTime") Date endTime,
                                          @Param("offset")int offset, @Param("size")int size);

    long findHazardPageDataTotal(@Param("hazardDTO") HazardDateQueryRequestDTO hazardDTO,
                                 @Param("startTime") Date startTime,
                                 @Param("endTime") Date endTime);



}
